#! /bin/bash

# インストール済みのDAW情報を吐き出す。

TempInfoPath='/tmp/SteinbergMRExtension/TempInfo'
AllAppsListPath='/tmp/SteinbergMRExtension/TempInfo/AllAppsList.txt'
LoGradeDAWsListPath='/tmp/SteinbergMRExtension/TempInfo/LoGradeDAWsList.txt'

mkdir -p $TempInfoPath

# 全Appのリスト作成。
ls > $AllAppsListPath /Applications

# DAWのリスト作成。
# Cubase Essential 5, Cubase AI 5 が対象。
grep -i '^Cubase \?Essential \?5.app$\|^Cubase \?AI \?5.app$' $AllAppsListPath > /$LoGradeDAWsListPath

rm -f $AllAppsListPath

exit 0
